import request from '@/utils/request'

// 创建福利信息
export function createDataInfofour(data) {
  return request({
    url: '/system/data-infofour/create',
    method: 'post',
    data: data
  })
}

// 更新福利信息
export function updateDataInfofour(data) {
  return request({
    url: '/system/data-infofour/update',
    method: 'put',
    data: data
  })
}

// 删除福利信息
export function deleteDataInfofour(id) {
  return request({
    url: '/system/data-infofour/delete?id=' + id,
    method: 'delete'
  })
}

// 获得福利信息
export function getDataInfofour(id) {
  return request({
    url: '/system/data-infofour/get?id=' + id,
    method: 'get'
  })
}

// 获得福利信息分页
export function getDataInfofourPage(params) {
  return request({
    url: '/system/data-infofour/page',
    method: 'get',
    params
  })
}
// 导出福利信息 Excel
export function exportDataInfofourExcel(params) {
  return request({
    url: '/system/data-infofour/export-excel',
    method: 'get',
    params,
    responseType: 'blob'
  })
}